﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace CoderJoe.Aspect
{
    public static class Extensions
    {
        internal static IEnumerable<IAspect> FindAspects(this Type type, AspectModel model)
        {
            return model.FindAspectsForType(type);
        }

        internal static IEnumerable<IAspect> FindAspects(this Type type)
        {
            return type.FindAspects(AspectModel.Current);
        }
    }
}
